import 'package:flutter_deer/generated/json/base/json_field.dart';
import 'package:flutter_deer/generated/json/member_bean_entity.g.dart';
import 'dart:convert';
export 'package:flutter_deer/generated/json/member_bean_entity.g.dart';

@JsonSerializable()
class MemberBeanEntity {
	dynamic memberAccount;
	List<MemberBeanMembers>? members = [];
	String? payOrderId;

	MemberBeanEntity();

	factory MemberBeanEntity.fromJson(Map<String, dynamic> json) => $MemberBeanEntityFromJson(json);

	Map<String, dynamic> toJson() => $MemberBeanEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class MemberBeanMembers {
	MemberBeanMembersAccountSumInfoResponse? accountSumInfoResponse;
	String? avatar = '';
	String? levelName = '';
	String? mchCode = '';
	String? mchMemberId = '';
	MemberBeanMembersMemberIntegral? memberIntegral;
	String? memberLevelType = '';
	List<MemberBeanMembersMemberPlates>? memberPlates = [];
	String? merchantMemberLevelId = '';
	String? nickname = '';
	bool? password = false;
	String? phone = '';
	List<MemberBeanMembersSimpleTagInfoResponses>? simpleTagInfoResponses = [];

	MemberBeanMembers();

	factory MemberBeanMembers.fromJson(Map<String, dynamic> json) => $MemberBeanMembersFromJson(json);

	Map<String, dynamic> toJson() => $MemberBeanMembersToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class MemberBeanMembersAccountSumInfoResponse {
	String? freezeAccountAmountSum = '';
	String? indAccountAmountSum = '';
	int? indAccountSum = 0;
	String? subAccountAmountSum = '';
	int? subAccountSum = 0;

	MemberBeanMembersAccountSumInfoResponse();

	factory MemberBeanMembersAccountSumInfoResponse.fromJson(Map<String, dynamic> json) => $MemberBeanMembersAccountSumInfoResponseFromJson(json);

	Map<String, dynamic> toJson() => $MemberBeanMembersAccountSumInfoResponseToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class MemberBeanMembersMemberIntegral {
	String? accountBalance = '';
	String? accountStatus = '';
	String? accountType = '';
	String? consumeAmount = '';
	String? createName = '';
	String? createTime = '';
	String? earnAmount = '';
	String? entityType = '';
	String? entityTypeId = '';
	String? expireAmount = '';
	String? id = '';
	int? isDeleted = 0;
	String? mchCode = '';
	String? phone = '';
	String? updateName = '';
	String? updateTime = '';

	MemberBeanMembersMemberIntegral();

	factory MemberBeanMembersMemberIntegral.fromJson(Map<String, dynamic> json) => $MemberBeanMembersMemberIntegralFromJson(json);

	Map<String, dynamic> toJson() => $MemberBeanMembersMemberIntegralToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class MemberBeanMembersMemberPlates {
	String? createName = '';
	String? createTime = '';
	String? id = '';
	int? isCommonly = 0;
	int? isDeleted = 0;
	String? mchMemberId = '';
	String? memberAccountId = '';
	String? plateNo = '';
	String? plateType = '';
	String? updateName = '';
	String? updateTime = '';
	String? url = '';

	MemberBeanMembersMemberPlates();

	factory MemberBeanMembersMemberPlates.fromJson(Map<String, dynamic> json) => $MemberBeanMembersMemberPlatesFromJson(json);

	Map<String, dynamic> toJson() => $MemberBeanMembersMemberPlatesToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class MemberBeanMembersSimpleTagInfoResponses {
	String? businessType = '';
	String? tagId = '';
	String? tagName = '';

	MemberBeanMembersSimpleTagInfoResponses();

	factory MemberBeanMembersSimpleTagInfoResponses.fromJson(Map<String, dynamic> json) => $MemberBeanMembersSimpleTagInfoResponsesFromJson(json);

	Map<String, dynamic> toJson() => $MemberBeanMembersSimpleTagInfoResponsesToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}